package com.fc.v2.mapper.auto;

import com.fc.v2.model.auto.Mechanism;
import com.fc.v2.model.auto.MechanismExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 机构表 MechanismMapper
 * @author fuce_自动生成
 * @email ${email}
 * @date 2021-06-08 21:11:14
 */
public interface MechanismMapper {
      	   	      	      	      	      	      	      	      	      	      	      	      	      	      
    long countByExample(MechanismExample example);

    int deleteByExample(MechanismExample example);
		
    int deleteByPrimaryKey(Integer id);
		
    int insert(Mechanism record);

    int insertSelective(Mechanism record);

    List<Mechanism> selectByExample(MechanismExample example);
		
    Mechanism selectByPrimaryKey(Integer id);
		
    int updateByExampleSelective(@Param("record") Mechanism record, @Param("example") MechanismExample example);

    int updateByExample(@Param("record") Mechanism record, @Param("example") MechanismExample example); 
		
    int updateByPrimaryKeySelective(Mechanism record);

    int updateByPrimaryKey(Mechanism record);

    List<Mechanism> getEnableMechanismByTypeId(@Param("typeId") Integer typeId);

    Mechanism getMechanismInfoByPrimaryKey(Integer id);

    List<Mechanism> getOtherMechanism(@Param("id") Integer id);

    Mechanism getSingleMechanism(@Param("id") Integer id);
  	  	
}